package com.qf.cqut.mapper;

import com.qf.cqut.model.pojo.AFood;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 忽失的温热
* @description 针对表【a_food】的数据库操作Mapper
* @createDate 2024-01-09 19:15:57
* @Entity com.qf.cqut.model.pojo.AFood
*/
public interface AFoodMapper {

    int deleteByPrimaryKey(Long id);

    int insert(AFood record);

    int insertSelective(AFood record);

    AFood selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AFood record);

    int updateByPrimaryKey(AFood record);

    List<AFood> selectAll();

    List<AFood> selectByLimit(@Param("page") Integer page, @Param("limit") Integer limit);

    Integer count();

    Integer deleteByIds(@Param("ids") String[] ids);

    List<AFood> queryByConditions(AFood aFood);

    Integer addAfood(AFood aFood);

    Integer editAfood(AFood aFood);

    Integer executeAplan1(AFood aFood);

    Integer executeAreturn1(AFood aFood);

    Integer executeAplan(AFood aFood);

    Integer executeAplan2(AFood aFood);
}
